.class public Lcom/example/m6wmr/AppUrlActivity;
.super Landroid/app/Activity;
.source "AppUrlActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation


# static fields
.field public static shopshow:Lcom/example/m6wmr/AppUrlActivity;


# instance fields
.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private goint:I

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field private orderid:Ljava/lang/String;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopname:Ljava/lang/String;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 50
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 51
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->areaid:Ljava/lang/String;

    .line 52
    iput-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->m:Lmyapp/MyApp;

    .line 55
    iput-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->h:Landroid/os/Handler;

    .line 57
    iput-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 58
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->mHandler:Landroid/os/Handler;

    .line 59
    iput-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->pd:Landroid/app/ProgressDialog;

    .line 60
    iput-boolean v2, p0, Lcom/example/m6wmr/AppUrlActivity;->loaddata:Z

    .line 61
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->orderid:Ljava/lang/String;

    .line 62
    iput-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->goodsstr:Ljava/lang/String;

    .line 65
    iput-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->cursor:Landroid/database/Cursor;

    .line 68
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->shopname:Ljava/lang/String;

    .line 69
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->shopstr:Ljava/lang/String;

    .line 70
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->pingstr:Ljava/lang/String;

    .line 71
    iput v2, p0, Lcom/example/m6wmr/AppUrlActivity;->goint:I

    .line 50
    return-void
.end method


# virtual methods
.method public bindbtn()V
    .locals 2

    .prologue
    .line 125
    const v1, 0x7f0c0001

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/AppUrlActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 126
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v1, Lcom/example/m6wmr/AppUrlActivity$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/AppUrlActivity$2;-><init>(Lcom/example/m6wmr/AppUrlActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 133
    return-void
.end method

.method public loadUrl(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 116
    iget-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    .line 118
    iget-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 119
    const-string v0, "\u6211\u662f\u65b0\u624b"

    const-string v1, "\u6570\u636e\u52a0\u8f7d\u4e2d..."

    invoke-static {p0, v0, v1}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/app/ProgressDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->pd:Landroid/app/ProgressDialog;

    .line 120
    iget-object v0, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V

    .line 122
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 75
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 76
    const v4, 0x7f030007

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/AppUrlActivity;->setContentView(I)V

    .line 78
    invoke-virtual {p0}, Lcom/example/m6wmr/AppUrlActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    check-cast v4, Lmyapp/MyApp;

    iput-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->m:Lmyapp/MyApp;

    .line 79
    iget-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v4}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 80
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 81
    iput-object p0, p0, Lcom/example/m6wmr/AppUrlActivity;->mcontext:Landroid/content/Context;

    .line 82
    sput-object p0, Lcom/example/m6wmr/AppUrlActivity;->shopshow:Lcom/example/m6wmr/AppUrlActivity;

    .line 83
    invoke-virtual {p0}, Lcom/example/m6wmr/AppUrlActivity;->bindbtn()V

    .line 85
    const/high16 v4, 0x7f0c0000

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/AppUrlActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 86
    .local v2, "top":Landroid/widget/LinearLayout;
    iget-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v4}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 87
    const v4, 0x7f070026

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 89
    :cond_0
    const v4, 0x7f0c0009

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/AppUrlActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 90
    .local v1, "titlename":Landroid/widget/TextView;
    const-string v4, "\u6211\u662f\u65b0\u624b"

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 94
    const v4, 0x7f0c001c

    invoke-virtual {p0, v4}, Lcom/example/m6wmr/AppUrlActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/webkit/WebView;

    iput-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    .line 95
    iget-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v4}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v3

    .line 96
    .local v3, "webSettings":Landroid/webkit/WebSettings;
    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 97
    iget-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v4, :cond_1

    .line 99
    iget-object v4, p0, Lcom/example/m6wmr/AppUrlActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v5, Lcom/example/m6wmr/AppUrlActivity$1;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/AppUrlActivity$1;-><init>(Lcom/example/m6wmr/AppUrlActivity;)V

    invoke-virtual {v4, v5}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 112
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 144
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 145
    invoke-virtual {p0}, Lcom/example/m6wmr/AppUrlActivity;->finish()V

    .line 146
    const v0, 0x7f040016

    const v1, 0x7f040019

    invoke-virtual {p0, v0, v1}, Lcom/example/m6wmr/AppUrlActivity;->overridePendingTransition(II)V

    .line 150
    :cond_0
    return v2
.end method

.method public onStart()V
    .locals 2

    .prologue
    .line 137
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/example/m6wmr/AppUrlActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "/index.php?ctrl=site&action=help"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/AppUrlActivity;->loadUrl(Ljava/lang/String;)V

    .line 138
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 139
    return-void
.end method
